import os
import pandas as pd

# 保存日数据的文件名
def get_daily_share_file_name(stock_name):
    return "data/share_daily/"+stock_name+".xlsx"
def daily_share_file_exists(stock_name):
    return os.path.exists(get_daily_share_file_name(stock_name))

def merge(df1, df2, ignore_index=True):
    #return df1.append(df2)
    if df1.empty:
        return df2
    if df2.empty:
        return df1

    return pd.concat([df1, df2], ignore_index=ignore_index)